package com.ppt.javappt.entity;

import javafx.scene.layout.StackPane;

import java.util.List;

/**
 * @author cys
 * 作为右侧幻灯片的展示区
 */
public class SlideStackPane extends StackPane {
    public SlideStackPane(){
        this.setPrefWidth(800);
        this.setPrefHeight(600);
    }
    public void setSlideList(List<Slide> slideList){
        this.getChildren().clear();
        this.getChildren().addAll(slideList);
        System.out.println(this.getChildren().size());
    }
}
